package gui.newgui.mainwindow;

import gui.newgui.IController;

import java.io.File;
import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import core.XMLWriter;

public class MainWindowController implements IController {
	MainWindow window;

	public MainWindowController(MainWindow mainWindow) {
		this.window = mainWindow;
	}

	public void loadTournamentData(File file) {
		try {
			XMLWriter.readFromFile(file);
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	public void updateTable() {
		// TODO Auto-generated method stub

	}

}
